﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System;
using System.Text.RegularExpressions;

namespace WeiTalk.SinaEntities.Status
{
    public class Entity 
    {
       
        public List<Content> Statuses { get; set; }
    }

    public class Content
    {
        string createdAt = string.Empty;
        string source = string.Empty;
        
        public string CreatedAt {
            get { return createdAt; }
            set { createdAt = Utility.ConvertUTCTimeToLocalTime(value); }
        }
        public string ID { get; set; }
        public string Text { get; set; }
        public string Source {
            get { return source; }
            set { source = "来自: " + Utility.FormatSource(value); }
        }
        public bool Favorited { get; set; }
        public bool Truncated { get; set; }
        public string InReplyToStuatusID { get; set; }
        public string InReplyToUserID { get; set; }
        public string InReplyToScreenName { get; set; }
        public string ThumbnailPictureUrl { get; set; }
        public string MiddleSizePictureUrl { get; set; }
        public string OriginalPictureUrl { get; set; }
        public string MID { get; set; }
        public int RepostsCount { get; set; }
        public int CommentsCount { get; set; }
       // public Annotations Annotations { get; set; }
        public GeoEntity GEO { get; set; }
        public User.Entity User { get; set; }
        public Content RetweetedStatus { get; set; }
        public string ThumbnailPic { get; set; }
        public string BmiddlePic { get; set; }
        public string OriginalPic { get; set; }
    }

    public class Annotations
    {
        public Source Source { get; set; }
        public Huati Huati { get; set; }
    }

    public class Source
    {
        public string Name { get; set; }
        public string Appid { get; set; }
        public string Url { get; set; }
    }

    public class Huati
    {
        public string From { get; set; }
    }
}
